<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<c:url value='/css/index.css'/>" />
<link rel="stylesheet" href="<c:url value='/css/level.css'/>" />
<script type="text/javascript" src="<c:url value='/js/jquery-1.6.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/index.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/form.js'/>" ></script>

<script type="text/javascript">
$(function(){
	var is=false;
	function isNameUsed()
	{
		var option={
				data:{username:encodeURIComponent($('input[name=username]').val())},
				url:"../UsernameJustment",
				dataType:"json",
				type:"post",
				success:function(data,status){
						if(data.istrue=="false") {
							$('input[name=username]').next("label").html("").next("label").html("用户名不可用");
							is=false;
						}
						else
							{
							$('input[name=username]').next("label").html("").next("label").html("");
							is=true;
							}
				
				},
				error:function(xhr,status){
					$('input[name=username]').next("label").html("系统出错了");
						is=false;
				}
		};
		$.ajax(option);
	}
		$("#rg").click(function(){
			
			if(vali()&&is)
			{
					
					$("#register form").submit();
			}
			else
			return false;
		});
		$("input[name=username]").blur(function(){
			if(check($("input[name=username]"),"3","5","用户名长度"))
				{
					isNameUsed();
					
				}
		});
		$("input[name=pdconfirm]").blur(function(){
			if($(this).val()==$("input[name=password]").val())
				{
					
					checkRg($("input[name=password]"),rgpassword,"密码格式不对");
					$(this).next("label").html("");
				}
			else
				$(this).next("label").html("对不起密码不一致");
				
		});
		$("form label").css("font-size","12px").css({"padding-left":"10px"});
});



</script>

<title>国家新药创制中心（山东）</title>
</head>
<body>
<body>
<div class="logo"></div>
    <div class="navg">
    	<ul>
     <li ><a href="<c:url value='/index.jsp' />" >首页</a></li>
            <li>|</li>
            <li ><a href="<c:url value='/center/center.jsp' />" >创制中心</a></li>
            <li>|</li>
            <li ><a href="<c:url value='/news/n_list.jsp' />" >最新动态</a></li>
            <li>|</li>
            <li ><a href="<c:url value='/achievement/a_list.jsp' />" >最新成果</a></li>
            <li>|</li>
            <li ><a href="<c:url value='/news/newslist.jsp?type=2&pg=1' />" >政策法规</a></li>
            <li>|</li>
            <li ><a href="<c:url value='/news/o_newslist.jsp?type=4&pg=1' />" >发展规划</a></li>
            <li>|</li>
            <li ><a href="<c:url value='/news/o_newslist.jsp?type=5&pg=1' />" >服务指南</a></li>
           <li>|</li>
            <li ><a href="<c:url value='/navigation/navigater.jsp' />" >网站地图</a></li>
             <li>|</li>
            <li ><a href="<c:url value='/zhuren/zhurenxinxiang.jsp'/>" class="<c:choose>
             	<c:when test='${sessionScope.count<=0}'>no_mail</c:when>
             	<c:otherwise>new_mail</c:otherwise>
             </c:choose>" style="padding-right:15px;">主任信箱</a></li>
            
        </ul>
    </div>
    <div class="weltop">
    	<span id="showtime"></span>
        <div id="searchquestion">
        	<form><input type="text" id="question"  />&nbsp;<input type="submit" value="提问" style="padding-bottom:2px;"/></form>
        </div>
    </div>
    <div id="contain">
   
	<div class="divhead">
		当前位置：<a href="<c:url value='/index.jsp' />">首页</a>&nbsp;&gt;&nbsp;用户注册
	</div>
    <div id="divshowcontain">
    	<div id="divleft" style="width:650px;">
    	<div id="register">
        	<h3>用户注册</h3>
        	${tip}
        	<form action="<c:url value="/register.action" />" method="post">
				<div>公司名：&nbsp;&nbsp;<input type="text" name="company"/><label>公司名长度为6-20位</label></div>
				
				<div>联系人：&nbsp;&nbsp;<input type="text" name="linkman" /><label>联系人姓名长度为3-5位</label></div>
				<div>联系邮箱：<input type="text" name="email" /><label>邮箱格式,xxxx@163.com</label></div>
				<div>联系号码：<input type="text" name="phone"/><label>手机号码11位，15154127896</label></div>
				<div>公司地点：<input type="text" name="address" /><label>公司地址长度为5到20位</label></div>
				<div>用户名：&nbsp;&nbsp;<input type="text" name="username" /><label>用户名长度只能为3-10位</label><label></label></div>
				<div>密码：&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="password" /><label>以字母开头，9到19位</label>
					
				</div>
				<div>密码确认：<input type="password" name="pdconfirm" /><label></label></div>
				<!--  <div>验证码：&nbsp;&nbsp;<input type="text" name="validatecode" style="width:80px" />&nbsp;
				<img src="<c:url value='/validate/validatecode.jsp' />" style="cursor:pointer"  id="imgcode"/>
				<label id="lbcode"></label></div>
				-->
				<div><input type="submit" id="rg" value="注册" style="width:75px;"/> <a href=""></a></div>
 			</form>	
           
        </div>
        
        </div>
        <div id="divmid"></div>
        	
        <div id="divright" style="width:250px;">
        	
        </div>
         <div style="clear:left"></div>
    </div>
       <div style="clear:left"></div>
       </div>
       <hr color="#999999" />
    <div id="bottom">
    	版权所有：山东省重大新药创制平台服务中心　　地址：济南高新区舜华路750号大学科技园综合楼B-202室　　电话：0531-88875158 88871510　　邮编：250100
<br><a href="http://www.miibeian.gov.cn/" target="_blank">鲁ICP备10030489号</a>　　技术支持:济南易夫森科技有限公司
    </div>
</body>
</html>